Fixed sending wrong type