Factory shows id when it is invalid