fix a `can use head` error