Fixes code snipped in preferences.md

It was not closing the block properly.