Case error fixed