Resetting code start and end fields.

Tried to create an appropriate test for the issue, but it seems like we can't call that Transactional functionality from existing testing environment. If it's really necessary, I'll try to do it, but that will take a while.