fix js workarround