fix bug to find len of instruction