fixing snippet loading