fix bug for profileviewcontroller