Fixed API account resource (issue #3417)