Fixes compilation issues in CandyList and CandyDetail