fix usage of get_masters