fix SDL bug where freeing the surface screen did not work properly