collision detc and fixed set position bug