fix a bug occures in case of multiple accounts