fix bug and .line() for dialogs