bugfix in api dsl