fixed bug that caused app to crash when no post was found with the specified id. fixed reference error bug aswell