fix setting minX