Fixing spelling errors and range max error