fix modal to enable auto horizontal centering