Fixed issue with CSS function

Fixed issue where css files would be included multiple times