fixed layout events bug