fixed some weird file modes