Fix error setting css properties