validate bug fixed