fix simple bug when nothing is loaded