fixing resource request bug