Fixes bug in the API-Interface