fixing nan issues in project 48