Fix app script