Fixed entities memory leak
Fixed PHP-Powered memory leaks