fix theta correction when wall on left side