Fix warning errors