Fixed longstanding overflow bug on chrome