Fix for ajax (2)