Fixed false positive debug assertion