Add dialyzer to check the code and fixed a error that was found