Fix warning build and opti