fixed bug on getting post