Added missing return statement in open_internal_file