Fixed a bug that breaks functionality for the getOne and getCollection methods.