fixed bug in open/3 where duplicate account case couldn't match