Fixed error after logout