bug fix (gets called every draw anyway)