build: minor fix for functions