Fix file writer. For now program require compiler -O3 option.