Finally succeeded on replacing tabs with spaces, sed ftw