Cursor Control works with some errors