Fix handling of multiple style sections. Closes #53.