Angle detection not working