fixed a bug in our razor inline if statement for selected attribute