Fis in the setHeadDirection function