Fixed syntax error in object apply events