Small bug in file mode while creating queue files

Need use a number instead of string in file mode. Or use oct() function for this.