Fixed crash due to post id not being an array index