add criteria bug fixed