fixed from last crash added photo tag fixed data type in schema