minor fix for auto resize