fix signature modal and cursor in prepare mode