fix for missing layers maybe