fix empty lines bug