Fixed thread_safe gem issue