fixed constraint

fixes #202