Fix bug that caused always defaulting a line style