repair after requirejs