fixed populate bug