fixes for if and loop in trigger - needed to make jumps relative.