bug in comparison fixed