fixed warnings for core