Fix resource initiation error.