Fix weak warning issue