fixed issues of grabbing one more instruction than we needed