fixed the empty lines bug