Fixes error in documents