fix undefined var $post in thumb classs