Fix stderr warnings