Rename variable to better describe the value and fixes nested resource controller give exception. Closes #13.

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