Fixed issue with signing wrong data