Fixed visits insert trigger