bugfixes for RBL training