Fix bug in simultaneous shooting