Fix the sed command

Also remove useless rules