fixed bugs within ua_list (removeLast, removeFirst)