Fixed draw bb function.