fixed user interaction bug.