Equals condition fix