Fix duplicate error not showing up in console