Fix for empty posts array