fix update event for collections
fix syntax errorz