fix null exception which broke IE - tmp fix until 0.2.0