Debugging turn problem