Added side guards to prevent cursor from sticking