Fix bugs regarding instance assignment
Fix bugs regarding instance assignment

cganas/picoCTF-web,picoCTF/picoCTF-web,picoCTF/picoCTF-web,cganas/picoCTF-web,picoCTF/picoCTF-web,cganas/picoCTF-web,cganas/picoCTF-web,picoCTF/picoCTF-web