Bug gallery is undefined (only on client computer)