Fix for Prototype 1.7 compatibility.