Maybe w is sometimes too small for it to handle appropriately?