Fixed bug in telepointer detection