Fixed Rebuild Application

Fixed how rebuild application works.