cleanup
fix js error