Fixed a bug with apiOuput path being undefined