fix loading constants