Fixed a small incosistanicy in the API