fix constant multiply bugs