try to fix js bug