I think the solution suggested at http://www.thenxtstep.com/2006/06/clicking-brick-syndrome.html will help you.