Fix some Warning and Error before setup