Fix layer.off bug: https://twitter.com/fictionism/status/466996305743446016