Fixed get_or_post method