fixed a bug in enable_cap_int