Fix javascript error.