attempts to fix bug