--fix loader for ajax promise error callback