fixed
fixed bug for comparison