fixed two warnings