controller bug fixed