Fixed errors in control panel