Fixed memory allocation problem which also fix message board