Take your hands off the short button when the funding fee is high. Close the trade before the fee calculation time ends to avoid being charged the funding fee.