fixed isOver test