fix error secret