Fixes double allocation of framebuffer and audio buffer overflow