404 handling and init fixes when not gallery