Fixed javascript error.