attempted to fix bug. didnt work