Corrected the way shell buffer is loaded.