Restore margin state after finishing with the entry.