Debugged templates and quote controller to fix moduleoptions always return null