Fix incorrect tetrad function