bugfix for my previous commit