fix ResourceController