routine bug fixed