fix check signature