fixed backend condition and loader