bugfixing valueEventHandler