bug fix: fire hook when changing walking direction