Fix error when callable contains object