Fix beep API and unconnected slot