Handle DocProperty correctly (thanks @Fuuzetsu)