Fix app defines