Fixed broken bubble code