[gcc4.7] fixed sample controller;