js flatland fix