Fix coord range max