fix compile of staging