Correction of a bug with CSS handling

TODO :
- Finish tesing
- Refactor everything to improve it