Fixed various problems in i486