Fixes bug with shortcuts enabled when writing display name.