fixed null pointer bug in kinematic sim