Fix scope issue in account resource parsing