fixed bugs in changes API