fixed remove empty lines bug