correct bug js