fix cache problem when active_enum index=nil