Fixed #1146: Bug - Server statistics script is broken
(cherry picked from commit 52537bd)