fixed sign-extension issues in some instructions