Fixed atoms/bonds not always being visible after resize.