fixes for ajax