big fix for hiding layers