Bug with copy master layout fixed

Signed-off-by: mossrocket <peter@mossrocket.com>