debug the error on setting