Rotated bounds calculation fixed.