fix issue 347

The source code to fix this issue https://github.com/cloudspokes/arena-web/issues/347