fix get_masters method