small tweak to handle resource controller on top level.

Signed-off-by: crynobone <crynobone@gmail.com>