Fix for extent javascript error.