Fixed a few copy paste typos.

Variables, pointers and code insertAfter was not working.