Fixes bug in AJAX collection update calls