fixed sign bit issues