Fixed some bugs when using IB
Removed a bug which created multiple layers