Fixed various bugs in the BASE interface