fix npe when the blueprint does not exist