Result controller bug code