fixed lack of handing for pattern matching of nullary records