fixed possible bug when domain min and max are the same (#37)