Fix sdram init function