Fix breaking of a few types.

Add checks to not edit same place, max edit limit.