nasty way to fix this