fixed error that led to infinite recusion; exit out if reprojection done incorrectly or fails