fixed incorrect backBuffer check