Fix modal / dialog not centering, fixes #44