Attempt at solving white screen problem