fix exception handling with slider