fixed #8 : changing minulp to maxulp