fixed the res issue