fixed problem with batch edit