fixed rotation bug in transformation