Try to fix usage of frameBuffer