Fixed lambda print function