fixed gnarly bug