Fixed nextblock flipping bug