Fix some dialyzer warnings