Fixed resize issues