Finally fixed all the fucking bugs T_T