fix a potential load order bug with application_controller