Bugfix: Always choose last matching style