correctly set details category select class based on value. Fixes #435