bugfix I thought I did last time