Fixed some bugs

Fixed issue with line update after destroy