Fixed version mask retrieval method in scaffolding