fixing bugs in renderCollection microservice