Take this if block out, the below line breaks style loading and is not needed; styles that start with a # are always in the smae document and not a reference.