Fixed bug that doesn't detect alternative formats onload.