Updated getOne and getCollection methods to remove the listener after it has been used.