fix cut off problem