Quick fix for automodes, needs to be fixed tho