added transfer bug fixes from xEssentials to xEssentials-legacy