fixed bug with clearing user