Fixes problem with api namespace