like 5f7cce2, fix #732 by using lazarus method