[Fix] makeMasterFile: Id mapping was using wrong indexing of f

Signed-off-by: Oleg Komarov <o.komarov11@imperial.ac.uk>