fixed resise issues