[Bug 10840] stamp tool not working properly