Fixed bug with fetching patient collection