Fixed bug in sensor create call