fix wmslayer regression

Fixes #101