fixed orphan above/below references to figures