bug on compare fixed