fixed metadata heap size autodetection