Fixed error in pin migrate