fixed missing primary columns