Fixing minor bug in decibel calculator