Corrected a bug where visually the item was closed while it was open