fix reload logic