JS quick bugfix