fixed a bug for user with no files