Fixed writing users out