fixed bug but found another one