bump version to 0.40.1 and fix a10 issue