Fixed alink calculation