bug fixed when dose is 0