Fixed memory size detection.