fixing an idle problem