Fixed error caused by photo and document partials