quick fix to quaternions script