Fixed not deleting sessions properly