fix avatar directive