small fix - casting