fix horizontal and vertical blank issue