Fix inCenter equation