Fixed bug that pitch value is not set