fix type missmatch.