fix for up/down rotation