fix pos file save bug