Fixed some resize issues