Fixes #2
Fix constraint violation