fix eof photo commend