fix developer mode events.
TEMPLATE LOCKING TRIAL BY FIRE BABY
fix errors.