Corrected the assigment of data to the correct ROC on custom modules.

This is a first attempt to use custom modules with missing ROCs. May have bugs.