fixes for memory box