Map pretty print for debugging purpose.
Fix guard when pattern match fails.