Fixed issue #20 - Objects disappear on window resize