Fixes extending modal as referenced in issue #52