fix build mode