FIXED: bug that cannot set a value as empty
UPDATED: integrated part of event handler into core structure