Fix setting attrs