client: fix incorrect expand icon shown sometimes