[FIX] correctly write panic