Fixed bug in Scheduler collection name inference