Fixing enum for func_code