fix for #appobjects-26 update bug with wrong generated datastore query