Fix some resource error