used correct min/max values (Fixes #7, Refs #6)