fixed issue when viewing example on http://127.0.0.1