fix type of CGFloat