Fixed some controllers to be compatible with https.