bug fix for door sequence