fix: wrong type casting was corrected