Fixed some minor bugs in catalog browser script.