None marker was getting removed in tmp file