fixed alignment bug and base addr