Added a hack to fix blank layer performance issues

if anyone can figure that one out let me know