Fix Resource Check Bug