fix warning log if index or assign is wrong

remember to count blocks as a call frame
changes
Merge pull request #94 from yast/fix_logging

Fix logging