fixed missing int conversion