this avoids overflow in firefox