Fix bug in getOpAssignment and satisfy complaints by "ghc -Wall Utils.hs"