fix bug introduced by @prefix refactor