fix for altering table