Fixed error reported in console.
Cleanup.