bugfix rotation null pointer