Fixed bug in regards to some gSurfaces being null