adjust layer index without backgroundLayer

Fixes Issue #22