fix prologue bug