Problem with medium application autostart