Fix for reading integer keys