fixed alignment bug that antiparallel reference vectors could be chosen