fixing RIS and styles loading