fixed constraint warning