Fixing prefix rest