resource availability bug fix