fix for leak caused by ddc65a96fdb1163b