fix to ajax