fixed a javascript warning