fix loading static resources