Unserialze POST data
Fixed index issue