[PATCH] Fix record decode