bug fix. and sound alert