fixed frame buffer size error