fix bug application c