temporary solution for ajax pending