fix api compile on startup