Fixed bug - function was binded to save dialog and was never unbinded.