fixed self bug