Fix bug in check