Fixed Post State method according to new conventions

@BeshoSmile @abdelrahmanMaged 

Please review me and merge the code