Event undefined bug fixed.
New layer events added. The layer rate materials delete.