quick fix to see if it will fix the crash after logout