fixed a cursor position problem with a hidden paragraph inside a list item