Fixed Dialogue script bug :bug:

Fixed the bug :bug: