fixes #4276 Show-in-listing can cause all content not to list

Fixed the issue and committed the code for review please check it.