bugfixes in commonsapi and download.html