Remove uninitialized values in the piano functions.