fix logic error in catalog view