Fixes for sed