platform.rb fixed