fix modal variables