set map tasks to 0 when appropriate