bugfix for blackscreen problem