fixed an error with bidpieces