fix redundant environment for serial flash