fix wrong comparison.