fix ball position bug