fixed for https://github.com/fossology/fossology/issues/21, more testing is needed, still have problems is possbile.