Fix setting range in peak_range caused Internal Server Error
Merge pull request #20 from silentshade/fix_peak_range

Thanks for catching this! Let me know if you find any other pain points.