attempt to fix js bug