[Core] Fixed some warnings