time alignment bug -fix