M3.Layer used the wrong check for custom files.