fixed duplicate case error