Update to improve compatibility with older version

made change suggested by @bogensberger