bug with older versions of php solved