bugfix for direct download