fixed minor bugs such as moving principal point to the center