Fixing 500 error on detail-attd