Fixing JS warning