fixed a strange and rare bug, maybe a PHP error