Table fix (problems when editing table)