fix bug for backend validation