Trap bad value in ref:sandre