fixed bug with forgotten param, fixed behavior for one table integrity