datadir fix for avatar binding