solve two warning.