fixed cursor issues after changing to prototype