fixed weird alter generation