Added character deletion to cleanup

Test is still running so I don't know if this solves any problems.