case error fixed