(validation) Fix issue with guard type validation