Profile delete bug fix