fix wrong comparison