fix bug + error at compilation