Create config

Fix bug http://www.ruby-forum.com/topic/168323#756113