Fix installer bugs.