fix ownership problem when using sudo