fix error when strict modes is on.