Fixed resize bug when colors are changed