Fixed resize modal issue