Hack to workaround onload callback called twice
Add an attempt at showAtlas() for debugging