Fix modal bug - occasionally width becomes 100%