Bugfixing in pb_base/app.py