fixed resize issues