fixed restoration of ctrl