Record bug

Fix NPE when copying from console