Fixed non-rails bug