fixed open file attributes