Fixed two warnings