fixed open/create file failure