Don't panic! Contact your dentist as soon as possible. They can usually re-cement the filling or replace it if necessary.