trying to fix bug, desperately