fix return value of enable