fix dialyzer-reported issues