Fixed bug with old PHP