index page debug : cannot call the method 'replace'

Signed-off-by: scauwjh <scauwjh@gmail.com>