Removed refrence to mainapp in phantom controller.