Possible fix for the empty modal bug #79