hotfix for nullpointerxception