fixed wrong comparison.