fix type missmatch