Fix to work with c