Fix fiber map and add ob_end_flush at end of app