bugfix in ram