fix map error in firefox + check if post exists