Bug fixes for resize tool