Fixes #4361 - api singleton broke commands for associations