fixed bug in equals generator