Removed comma!
Repaired max setting logic