Bug fix - division by zero when pasting from the clipboard.