fix bug for self placement