Fixes bug in ajax systax