Fix overlay problem with record button