fix for required false and unique true. Fixes #415