bug fix for browser that does not support nth-of-type query selector