Fixed the create trigger