fix missmatch exception on return statement.