fixed view's events bug