Fixed generated code tab names suffix increment when closing code tab