fix rotation with system version check