fixed transfer bug