Potential fix for 500 error on classes page