Fixed bug in PBA