fixed a bug in FileActivity