fixed the same array key error again, must be stupid