fix bug compilation