Fix warnings shown in the browser console

There are some warning in the browser console:

Some warning in the browser console disappeared.