Fixed gallery error