fix for insert