Minor bug fix, thanks to JayFoxRox for reporting!
Minor fix which fixes a segfault sometimes (usually at enable/disable account)