long type conversion corrections