fixed bug in vector table init