fix bug with link and unlink accounts