Not baking the macarons long enough may cause them to be too gooey on the inside and not have the top be attached to the bottom. This is an easy fix, bake the macarons until they are fully baked. To know when the macarons are done baking, wiggle one shell and if it jiggles continue to bake it.