bugfix maxWidth handling