Fixing application costrution logic error