fix grain list on iPad

In Chrome and Safari on iOS 8.1, clicking on a grain fails to open it. This patch makes it work.