Fix two warnings