fix warning log if index or assign is wrong

remember to count blocks as a call frame
changes