Fixed some perimeta import bugs.