fix max-geometry