Bug fix for mutiple line save