invalid character bug solved