fixed weird errors with deleted profiles