bugfixes to align routines