Fixes display bug when in-line block closes