Fixed linux resize bug