fixed small boolean issue