Fixed quiz builder to use deep copying and publish checking in student view