fixed bug in show posts view