Fixed minor validation bug