resource error fixed