fix camera fct, renamed error_fct