fix mistakes in KSV layout and slightly change AB layout