Fix readObject method signature