fixed some auto-layout issues (thanks to Bart Kummel)