Fix using given ID now to set door type,probably can be simplyfied