Fixes File/Directory Mode.

Before the mode was reporting as not having read permission