bug fix attempt that didn't work