Fixed 'ChangeBaseTypes' function.