fix error when query selected story