fix other bug in equals