fixed a possible bug in FileActivity