fixed an issue with older php versions