[PATCH] Removing flags from sub