Fix nullptrexception

The chunkres wasn't defined - i set the default to 50