Fixed issue by dirty casting.