fixed issue with settings and PHP versions before 5.4