bug in compare fixed