fix Backbone.localSync exception