fixed bugs in segment registers