doubledoor protection on creation
fixed ClassCastException when relative door was higher or lower than expected