Fixed error on Facade::api()