Hopefully fix for resize issue (see #15)