Fix check function.

--HG--
extra : source : 1a5fcd76e6399eed81db6262d110b12c1cd5bc9f
Added tag 1.3 for changeset d4eee818eb9f