fix two warnings