correct open in case of error