Fix the bug in function whiskers