fixed formatting for word under cursor