Fixed fault found by dialyzer.