fixed rotation issues