Fixed missing refs and incorrect branch names