Fixed api.entity instead of api.entities