Tiny bug in a function call