fix attraction bug