Fixes a critical attribute error