[Core] Fix some warnings