fix samba code