Core: Fix warnings with other way