Fixed sed commands